﻿// ----------------------------------------------------------------
// Description : 实体类,该文件由MyGeneration生成
// Author      : 
// Create date : 2009-12-06
// ----------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;
using Microsoft.Practices.EnterpriseLibrary.Data;

namespace ITOMMS.Entity
{
	/// <summary>
	///	VwQuestionnaire Entity
	///	VwQuestionnaire Entity
	/// </summary>
	[Serializable]
	public class VwQuestionnaireEntity : BaseEntity<VwQuestionnaireEntity,int>
	{
		
		#region 私有成员			
		
		private int _ID; 
		private string _客户名称; 
		private int? _服务项目; 
		private string _服务项目名称; 
		private string _客户电话; 
		private string _反馈人; 
		private bool? _ASK1; 
		private bool? _ASK2; 
		private bool? _ASK3; 
		private bool? _ASK4; 
		private bool? _ASK5; 
		private bool? _ASK6; 
		private bool? _ASK7; 
		private bool? _ASK8; 
		private bool? _ASK9; 
		private bool? _ASK10; 
		private int? _工程师; 
		private string _RealName; 
		private int? _专业技术; 
		private int? _服务态度; 
		private int? _总体评价; 
		private DateTime? _CreateDate; 
		private int? _CreateBy; 
		private int _SEQNO;
		#endregion


		
		#region 默认( 空 ) 构造函数
		/// <summary>
		/// 默认构造函数
		/// </summary>
		public VwQuestionnaireEntity()
		{
			_ID = 0; 
			_客户名称 = String.Empty; 
			_服务项目 =  null; 
			_服务项目名称 = String.Empty; 
			_客户电话 = String.Empty; 
			_反馈人 = String.Empty; 
			_ASK1 =  null; 
			_ASK2 =  null; 
			_ASK3 =  null; 
			_ASK4 =  null; 
			_ASK5 =  null; 
			_ASK6 =  null; 
			_ASK7 =  null; 
			_ASK8 =  null; 
			_ASK9 =  null; 
			_ASK10 =  null; 
			_工程师 =  null; 
			_RealName = String.Empty; 
			_专业技术 =  null; 
			_服务态度 =  null; 
			_总体评价 =  null; 
			_CreateDate =  null; 
			_CreateBy =  null; 
			_SEQNO = 0;
		}
		#endregion
		
		#region 属性值校验
		
		/// <summary>
		/// 属性值校验
		/// </summary>
		public bool CheckValues()
		{
			bool bResult = true;
			string strError = "";
		
			if ( _ID ==  0)
			{
				bResult = false;
				strError += "\r\n 非空值不能为: "+_ID;
			}
			
			if( !bResult )
					throw new ArgumentOutOfRangeException(strError);
			return bResult;
			
		}
		
		#endregion
		
		
		
	
		#region Required Fields Only Constructor
		
		/// <summary>
		/// required (not null) fields only constructor
		/// </summary>
		public VwQuestionnaireEntity(
		int para_ID		)
		: this()
		{
					_ID = para_ID;
			_客户名称 = String.Empty;
			_服务项目 = null;
			_服务项目名称 = String.Empty;
			_客户电话 = String.Empty;
			_反馈人 = String.Empty;
			_ASK1 = null;
			_ASK2 = null;
			_ASK3 = null;
			_ASK4 = null;
			_ASK5 = null;
			_ASK6 = null;
			_ASK7 = null;
			_ASK8 = null;
			_ASK9 = null;
			_ASK10 = null;
			_工程师 = null;
			_RealName = String.Empty;
			_专业技术 = null;
			_服务态度 = null;
			_总体评价 = null;
			_CreateDate = null;
			_CreateBy = null;
		}
		#endregion 

		
		#region 公有属性
			
			/// <summary>
			/// 行号，顺序号。系统默认的属性,对这个属性不要作操作.属性值在架构中已经处理
			/// </summary>
			public virtual int SEQNO
			{
				get { return _SEQNO; }
				set { _SEQNO = value; }
			}
		
			
		/// <summary>
		/// ID
		/// </summary>		
		public virtual int ID
		{
			get { return _ID; }
			set { _ID = value; }
		}
			
		/// <summary>
		/// 客户名称
		/// </summary>		
		public virtual string 客户名称
		{
			get { return _客户名称; }
			set	
			{
				
				if ( value != null)
					if( value.Length > 50)
						throw new ArgumentOutOfRangeException("Invalid value for 客户名称", value, value.ToString());
				
				_客户名称 = value;
			}
		}
			
		/// <summary>
		/// 服务项目
		/// </summary>		
		public virtual int? 服务项目
		{
			get { return _服务项目; }
			set { _服务项目 = value; }
		}
			
		/// <summary>
		/// 服务项目名称
		/// </summary>		
		public virtual string 服务项目名称
		{
			get { return _服务项目名称; }
			set	
			{
				
				if ( value != null)
					if( value.Length > 50)
						throw new ArgumentOutOfRangeException("Invalid value for 服务项目名称", value, value.ToString());
				
				_服务项目名称 = value;
			}
		}
			
		/// <summary>
		/// 客户电话
		/// </summary>		
		public virtual string 客户电话
		{
			get { return _客户电话; }
			set	
			{
				
				if ( value != null)
					if( value.Length > 20)
						throw new ArgumentOutOfRangeException("Invalid value for 客户电话", value, value.ToString());
				
				_客户电话 = value;
			}
		}
			
		/// <summary>
		/// 反馈人
		/// </summary>		
		public virtual string 反馈人
		{
			get { return _反馈人; }
			set	
			{
				
				if ( value != null)
					if( value.Length > 20)
						throw new ArgumentOutOfRangeException("Invalid value for 反馈人", value, value.ToString());
				
				_反馈人 = value;
			}
		}
			
		/// <summary>
		/// ASK1
		/// </summary>		
		public virtual bool? ASK1
		{
			get { return _ASK1; }
			set { _ASK1 = value; }
		}
			
		/// <summary>
		/// ASK2
		/// </summary>		
		public virtual bool? ASK2
		{
			get { return _ASK2; }
			set { _ASK2 = value; }
		}
			
		/// <summary>
		/// ASK3
		/// </summary>		
		public virtual bool? ASK3
		{
			get { return _ASK3; }
			set { _ASK3 = value; }
		}
			
		/// <summary>
		/// ASK4
		/// </summary>		
		public virtual bool? ASK4
		{
			get { return _ASK4; }
			set { _ASK4 = value; }
		}
			
		/// <summary>
		/// ASK5
		/// </summary>		
		public virtual bool? ASK5
		{
			get { return _ASK5; }
			set { _ASK5 = value; }
		}
			
		/// <summary>
		/// ASK6
		/// </summary>		
		public virtual bool? ASK6
		{
			get { return _ASK6; }
			set { _ASK6 = value; }
		}
			
		/// <summary>
		/// ASK7
		/// </summary>		
		public virtual bool? ASK7
		{
			get { return _ASK7; }
			set { _ASK7 = value; }
		}
			
		/// <summary>
		/// ASK8
		/// </summary>		
		public virtual bool? ASK8
		{
			get { return _ASK8; }
			set { _ASK8 = value; }
		}
			
		/// <summary>
		/// ASK9
		/// </summary>		
		public virtual bool? ASK9
		{
			get { return _ASK9; }
			set { _ASK9 = value; }
		}
			
		/// <summary>
		/// ASK10
		/// </summary>		
		public virtual bool? ASK10
		{
			get { return _ASK10; }
			set { _ASK10 = value; }
		}
			
		/// <summary>
		/// 工程师
		/// </summary>		
		public virtual int? 工程师
		{
			get { return _工程师; }
			set { _工程师 = value; }
		}
			
		/// <summary>
		/// RealName
		/// </summary>		
		public virtual string RealName
		{
			get { return _RealName; }
			set	
			{
				
				if ( value != null)
					if( value.Length > 30)
						throw new ArgumentOutOfRangeException("Invalid value for RealName", value, value.ToString());
				
				_RealName = value;
			}
		}
			
		/// <summary>
		/// 专业技术
		/// </summary>		
		public virtual int? 专业技术
		{
			get { return _专业技术; }
			set { _专业技术 = value; }
		}
			
		/// <summary>
		/// 服务态度
		/// </summary>		
		public virtual int? 服务态度
		{
			get { return _服务态度; }
			set { _服务态度 = value; }
		}
			
		/// <summary>
		/// 总体评价
		/// </summary>		
		public virtual int? 总体评价
		{
			get { return _总体评价; }
			set { _总体评价 = value; }
		}
			
		/// <summary>
		/// CreateDate
		/// </summary>		
		public virtual DateTime? CreateDate
		{
			get { return _CreateDate; }
			set { _CreateDate = value; }
		}
			
		/// <summary>
		/// CreateBy
		/// </summary>		
		public virtual int? CreateBy
		{
			get { return _CreateBy; }
			set { _CreateBy = value; }
		}
			


		#endregion 	
		
		
        #region DAO操作
		
		
		/// <summary>
        /// 获取所有实体的列表
        /// </summary>
        /// <returns></returns>
        public override List<VwQuestionnaireEntity> GetAll()
        {
            StringBuilder strSql = new StringBuilder();
			strSql.Append("select [ID],[客户名称],[服务项目],[服务项目名称],[客户电话],[反馈人],[ASK1],[ASK2],[ASK3],[ASK4],[ASK5],[ASK6],[ASK7],[ASK8],[ASK9],[ASK10],[工程师],[RealName],[专业技术],[服务态度],[总体评价],[CreateDate],[CreateBy] from [Vw_Questionnaire] ");
	
            List<VwQuestionnaireEntity> list = new List<VwQuestionnaireEntity>();
            Database db = GetDatabase();
            using (IDataReader dataReader = db.ExecuteReader(CommandType.Text, strSql.ToString()))
            {
				int seq = 0;
                while (dataReader.Read())
                {	seq++;
                    list.Add(ReaderBind(dataReader,seq));
                }
            }
            return list;
        }
		
		/// <summary>
        /// 获取所有实体的列表总行数
        /// </summary>
        /// <returns></returns>
        public override int GetTotalRecords()
        {
            StringBuilder strSql = new StringBuilder();
			strSql.Append("  select count([ID])  from [Vw_Questionnaire] ");
	
            Database db = GetDatabase();
            return (int)db.ExecuteScalar(CommandType.Text, strSql.ToString());
        }
		
		/// <summary>
        /// 获取所有实体的列表总行数
        /// </summary>
        /// <returns></returns>
        public override int GetTotalRecords(string sqlCondition)
        {
            StringBuilder strSql = new StringBuilder();
			strSql.Append("  select count([ID])  from [Vw_Questionnaire]  ");
	
			 if (sqlCondition.Trim() != "")
            {
                strSql.Append(" where " + sqlCondition);
            }
            Database db = GetDatabase();
            return (int)db.ExecuteScalar(CommandType.Text, strSql.ToString());
        }	
		
		
		/// <summary>
        /// 按条件查询,得到一页的对应的结果列表
        /// </summary>
        /// <param name="strWhere">条件</param>
		/// <param name="PageSize">每页大小</param>
		/// <param name="CurrentPageIndex">当前页码</param>
        /// <returns></returns>
		 public override List<VwQuestionnaireEntity> GetAllByQuery(string strWhere, int PageSize, int CurrentPageIndex)
        {
            StringBuilder strSql = new StringBuilder();
            if (strWhere.Contains("order".ToLower()))
            {
                throw new Exception("分页查询的sql条件中不能包括排序子句，请调用重载方法实现有条件的排序筛选");
            }
		 
			strSql.Append("select top ").Append(PageSize).Append("  [ID],[客户名称],[服务项目],[服务项目名称],[客户电话],[反馈人],[ASK1],[ASK2],[ASK3],[ASK4],[ASK5],[ASK6],[ASK7],[ASK8],[ASK9],[ASK10],[工程师],[RealName],[专业技术],[服务态度],[总体评价],[CreateDate],[CreateBy] from [Vw_Questionnaire] where ");

			 if (strWhere.Trim() != "")
            {
                strSql.Append("  " + strWhere + " and ");
            }
			  strSql.Append(" ID not in ( ");
			 strSql.Append(" select top ").Append(PageSize*(CurrentPageIndex-1)).Append("  [ID] from [Vw_Questionnaire] ");

            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere );
            }
			strSql.Append(" ) " );

            List<VwQuestionnaireEntity> list = new List<VwQuestionnaireEntity>();
            Database db = GetDatabase();
            using (IDataReader dataReader = db.ExecuteReader(CommandType.Text, strSql.ToString()))
            {
			   int seq = PageSize * (CurrentPageIndex - 1);
                while (dataReader.Read())
                {
					seq++;
                    list.Add(ReaderBind(dataReader, seq));
                }
            }
            return list;
        }
		
		
			/// <summary>
        /// 按条件查询,得到一页的对应的结果列表
        /// </summary>
        /// <param name="strWhere">条件</param>
		/// <param name="PageSize">每页大小</param>
		/// <param name="CurrentPageIndex">当前页码</param>
		/// <param name="strSort">ex:order by id desc</param>
        /// <returns></returns>
		 public override List<VwQuestionnaireEntity> GetAllByQuery(string strWhere,string strSort, int PageSize, int CurrentPageIndex)
        {
            StringBuilder strSql = new StringBuilder();
            if (strWhere.Contains("order".ToLower()))
            {
                throw new Exception("分页查询的sql条件中不能包括排序子句，请调用重载方法实现有条件的排序筛选");
            }
		 
			strSql.Append("select top ").Append(PageSize).Append("  [ID],[客户名称],[服务项目],[服务项目名称],[客户电话],[反馈人],[ASK1],[ASK2],[ASK3],[ASK4],[ASK5],[ASK6],[ASK7],[ASK8],[ASK9],[ASK10],[工程师],[RealName],[专业技术],[服务态度],[总体评价],[CreateDate],[CreateBy] from [Vw_Questionnaire] where ");

			 if (strWhere.Trim() != "")
            {
                strSql.Append("  " + strWhere + " and ");
            }
			  strSql.Append(" ID not in ( ");
			 strSql.Append(" select top ").Append(PageSize*(CurrentPageIndex-1)).Append("  [ID] from [Vw_Questionnaire] ");

            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere+" " ).Append(strSort);
            }
			strSql.Append(" ) " ).Append(strSort);

            List<VwQuestionnaireEntity> list = new List<VwQuestionnaireEntity>();
            Database db = GetDatabase();
            using (IDataReader dataReader = db.ExecuteReader(CommandType.Text, strSql.ToString()))
            {
				int seq = PageSize * (CurrentPageIndex - 1);
                while (dataReader.Read())
                {	
					seq++;
                    list.Add(ReaderBind(dataReader, seq));
                }
            }
            return list;
        }
		
		
		/// <summary>
        /// 按条件查询,得到对应的结果列表
        /// </summary>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public override List<VwQuestionnaireEntity> GetAllByQuery(string strWhere)
        {
			strWhere = SQLInjectionFilter(strWhere);
            StringBuilder strSql = new StringBuilder();
			strSql.Append("select [ID],[客户名称],[服务项目],[服务项目名称],[客户电话],[反馈人],[ASK1],[ASK2],[ASK3],[ASK4],[ASK5],[ASK6],[ASK7],[ASK8],[ASK9],[ASK10],[工程师],[RealName],[专业技术],[服务态度],[总体评价],[CreateDate],[CreateBy] from Vw_Questionnaire ");

            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            List<VwQuestionnaireEntity> list = new List<VwQuestionnaireEntity>();
            Database db = GetDatabase();
            using (IDataReader dataReader = db.ExecuteReader(CommandType.Text, strSql.ToString()))
            { 
				int seq = 0;
                while (dataReader.Read())
                {
					seq++;
                    list.Add(ReaderBind(dataReader,seq));
                }
            }
            return list;
        }
		
		
		
		/// <summary>
        /// 按条件查询,得到对应的结果列表
        /// </summary>
        /// <param name="strWhere"></param>
		/// <param name="parameters">sql条件中的参数</param>
        /// <returns></returns>
        public override List<VwQuestionnaireEntity> GetAllByQuery(string strWhere, List<IDataParameter> parameters)
        {
            StringBuilder strSql = new StringBuilder();
			strSql.Append("select [ID],[客户名称],[服务项目],[服务项目名称],[客户电话],[反馈人],[ASK1],[ASK2],[ASK3],[ASK4],[ASK5],[ASK6],[ASK7],[ASK8],[ASK9],[ASK10],[工程师],[RealName],[专业技术],[服务态度],[总体评价],[CreateDate],[CreateBy] from [Vw_Questionnaire] ");

            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            List<VwQuestionnaireEntity> list = new List<VwQuestionnaireEntity>();
            Database db = GetDatabase();
            DbCommand dbCommand = db.GetSqlStringCommand(strSql.ToString());
            foreach (IDataParameter sp in parameters)
            {
                db.AddInParameter(dbCommand, sp.ParameterName, sp.DbType, sp.Value);
            }

            using (IDataReader dataReader = db.ExecuteReader(dbCommand))
            {
				int seq =0 ;
                while (dataReader.Read())
                {
					seq++;
                    list.Add(ReaderBind(dataReader,seq));
                }
            }
            return list;
        }
		
		
		

		
		
		/// <summary>
        /// 获取按条件查询以后的结果列表的前指定rowNumber行记录
        /// </summary>
        /// <param name="strWhere">不带where关键字的SQL条件语句</param>
        /// <param name="rowNumber"></param>
        /// <returns></returns>
        public override List<VwQuestionnaireEntity> GetAllByQuery(string strWhere, List<IDataParameter> parameters, int rowNumber)
        {

            StringBuilder strSql = new StringBuilder();
			strSql.Append("select top ").Append(rowNumber).Append("  [ID],[客户名称],[服务项目],[服务项目名称],[客户电话],[反馈人],[ASK1],[ASK2],[ASK3],[ASK4],[ASK5],[ASK6],[ASK7],[ASK8],[ASK9],[ASK10],[工程师],[RealName],[专业技术],[服务态度],[总体评价],[CreateDate],[CreateBy] from [Vw_Questionnaire] ");

            if (strWhere.Trim() != "")
            {
                strSql.Append(" where " + strWhere);
            }
            List<VwQuestionnaireEntity> list = new List<VwQuestionnaireEntity>();
            Database db = GetDatabase();
            DbCommand dbCommand = db.GetSqlStringCommand(strSql.ToString());
            foreach (IDataParameter sp in parameters)
            {
                db.AddInParameter(dbCommand, sp.ParameterName, sp.DbType, sp.Value);
            }

            using (IDataReader dataReader = db.ExecuteReader(dbCommand))
            {	
				int seq = 0;
                while (dataReader.Read())
                {
					seq++;
                    list.Add(ReaderBind(dataReader,seq));
                }
            }
            return list;
        }
		
		
		/// <summary>
        /// 获取按条件查询以后的结果列表的前指定rowNumber行记录
        /// </summary>
        /// <param name="strWhere">不带where关键字的SQL条件语句: AND AA=@AA</param>
        /// <param name="rowNumber"></param>
        /// <returns></returns>
        public override List<VwQuestionnaireEntity> GetAllByQuery(string strWhere, int rowNumber)
        {
		    strWhere = SQLInjectionFilter(strWhere);
            StringBuilder strSql = new StringBuilder();
			
			strSql.Append("select top ").Append(rowNumber).Append("  [ID],[客户名称],[服务项目],[服务项目名称],[客户电话],[反馈人],[ASK1],[ASK2],[ASK3],[ASK4],[ASK5],[ASK6],[ASK7],[ASK8],[ASK9],[ASK10],[工程师],[RealName],[专业技术],[服务态度],[总体评价],[CreateDate],[CreateBy] from [Vw_Questionnaire] ");

            if (strWhere.Trim() != "")
            {
                strSql.Append(" where  " + strWhere);
            }
            List<VwQuestionnaireEntity> list = new List<VwQuestionnaireEntity>();
            Database db = GetDatabase();
            using (IDataReader dataReader = db.ExecuteReader(CommandType.Text, strSql.ToString()))
            {
				int seq=0;
                while (dataReader.Read())
                {	
					seq++;
                    list.Add(ReaderBind(dataReader,seq));
                }
            }
            return list;
        }
		
		
		
		
		
			
		
		/// <summary>
        /// 对象实体绑定数据
		///生成构造为list的构造器
        /// </summary>
        private VwQuestionnaireEntity ReaderBind(IDataReader dataReader,int seq)
        {
            ITOMMS.Entity.VwQuestionnaireEntity entity = new ITOMMS.Entity.VwQuestionnaireEntity();
			entity.SEQNO = seq;
            object obj;
						 obj=dataReader["ID"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ID= (int)obj;
			}
			 entity.客户名称= dataReader["客户名称"].ToString();
			 obj=dataReader["服务项目"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.服务项目= (int)obj;
			}
			 entity.服务项目名称= dataReader["服务项目名称"].ToString();
			 entity.客户电话= dataReader["客户电话"].ToString();
			 entity.反馈人= dataReader["反馈人"].ToString();
			 obj=dataReader["ASK1"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK1= (bool)obj;
			}
			 obj=dataReader["ASK2"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK2= (bool)obj;
			}
			 obj=dataReader["ASK3"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK3= (bool)obj;
			}
			 obj=dataReader["ASK4"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK4= (bool)obj;
			}
			 obj=dataReader["ASK5"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK5= (bool)obj;
			}
			 obj=dataReader["ASK6"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK6= (bool)obj;
			}
			 obj=dataReader["ASK7"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK7= (bool)obj;
			}
			 obj=dataReader["ASK8"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK8= (bool)obj;
			}
			 obj=dataReader["ASK9"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK9= (bool)obj;
			}
			 obj=dataReader["ASK10"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK10= (bool)obj;
			}
			 obj=dataReader["工程师"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.工程师= (int)obj;
			}
			 entity.RealName= dataReader["RealName"].ToString();
			 obj=dataReader["专业技术"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.专业技术= (int)obj;
			}
			 obj=dataReader["服务态度"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.服务态度= (int)obj;
			}
			 obj=dataReader["总体评价"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.总体评价= (int)obj;
			}
			 obj=dataReader["CreateDate"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.CreateDate= (DateTime)obj;
			}
			 obj=dataReader["CreateBy"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.CreateBy= (int)obj;
			}

            return entity;
        }
		
		
				/// <summary>
        /// 对象实体绑定数据
		///生成构造为list的构造器
        /// </summary>
        private VwQuestionnaireEntity ReaderBind(IDataReader dataReader)
        {
            ITOMMS.Entity.VwQuestionnaireEntity entity = new ITOMMS.Entity.VwQuestionnaireEntity();
			object obj;
						 obj=dataReader["ID"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ID= (int)obj;
			}
			 entity.客户名称= dataReader["客户名称"].ToString();
			 obj=dataReader["服务项目"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.服务项目= (int)obj;
			}
			 entity.服务项目名称= dataReader["服务项目名称"].ToString();
			 entity.客户电话= dataReader["客户电话"].ToString();
			 entity.反馈人= dataReader["反馈人"].ToString();
			 obj=dataReader["ASK1"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK1= (bool)obj;
			}
			 obj=dataReader["ASK2"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK2= (bool)obj;
			}
			 obj=dataReader["ASK3"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK3= (bool)obj;
			}
			 obj=dataReader["ASK4"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK4= (bool)obj;
			}
			 obj=dataReader["ASK5"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK5= (bool)obj;
			}
			 obj=dataReader["ASK6"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK6= (bool)obj;
			}
			 obj=dataReader["ASK7"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK7= (bool)obj;
			}
			 obj=dataReader["ASK8"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK8= (bool)obj;
			}
			 obj=dataReader["ASK9"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK9= (bool)obj;
			}
			 obj=dataReader["ASK10"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.ASK10= (bool)obj;
			}
			 obj=dataReader["工程师"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.工程师= (int)obj;
			}
			 entity.RealName= dataReader["RealName"].ToString();
			 obj=dataReader["专业技术"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.专业技术= (int)obj;
			}
			 obj=dataReader["服务态度"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.服务态度= (int)obj;
			}
			 obj=dataReader["总体评价"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.总体评价= (int)obj;
			}
			 obj=dataReader["CreateDate"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.CreateDate= (DateTime)obj;
			}
			 obj=dataReader["CreateBy"];
			if(obj != null && obj != DBNull.Value)
			{
			 entity.CreateBy= (int)obj;
			}

            return entity;
        }
		
		
		
		 #endregion
		
	}
}
